﻿using Serilog;
using SqlSugar;

namespace Luka;

/// <summary>
/// sqlsuagr Aop
/// </summary>
[NotScanned]
internal static class SqlSugarAop
{
    /// <summary>
    /// 记录sql日志
    /// </summary>
    public static void LogSql(string operate, string sql, SugarParameter[] parameters)
    {
        Log.Information($"【Operate】:[{operate}] \r\n【SQL语句】:{UtilMethods.GetNativeSql(sql, parameters)}");
    }
}